{template header}
<script src="static/bootstrap/js/utils.js"></script>
<link rel="stylesheet" href="static/calendar/js/calendar.css" />
<script type="text/javascript" charset="utf-8" src="static/calendar/calendar.php"></script>
<a href='/?c=admingear&a=setList'>返回</a>
<form class="form-horizontal" action="" method="post" enctype="multipart/form-data">
  <div class="control-group">
    <label class="control-label" for="inputTiltle">集合名称：</label>
    <div class="controls">
      <input type="text" name='name' placeholder="请输入品牌名称" value="{$setInfo['setName']}">
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="inputTiltle">集合logo：</label>
    <div class="controls">
      <img width="150" src="{$setInfo['logo']}" alt="集合logo">
      <input type="file" name='newLogo' value="{$setInfo['setName']}">
      <input type="hidden" name='logo' value="{$setInfo['logo']}">
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="inputTiltle">背景图</label>
    <div class="controls">
      <img width="150" src="{$setInfo['img']}" alt="背景图">
      <input type="file" name='newImg' value="{$setInfo['setName']}">
      <input type="hidden" name='img' value="{$setInfo['img']}">
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="inputTiltle">描述：</label>
    <div class="controls">
      <textarea name='describe' placeholder="请输入描述：" >{$setInfo['setDescribe']}</textarea>     
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="inputTiltle">显示：</label>
    <div class="controls">
      <select name="isShow">
        <option {if $setInfo['isShow'] == 1}selected="selected"{/if} value="1">显示</option>
        <option {if $setInfo['isShow'] == 0}selected="selected"{/if} value="0">隐藏</option>
      </select>
    </div>
  </div>
  
  <div class="control-group">
    <div class="controls">
        <input type="hidden" name="id" value="{$setInfo['setId']}">        
        <button type="submit" class="btn">提交</button>
    </div>
  </div> 
</form>
{if isset($err)}<span style='color:red'>{loop $err $k $v}{$v}----- {/loop}</span> {/if}
{template footer}